<html>

<head>
    <title>上传人脸照片</title>
    <script src="js/jquery-3.2.1.js"></script>
</head>

<body>
    <div>
        <div>
            <div class="camera">
                <video id="video" width="400" height="300" autoplay></video>
            </div>
            <div class="view">
                <canvas id="canvas" width="400" height="300"></canvas>
            </div>
            <div style="clear:both;"></div>
        </div>
        <canvas id="canvas_r" width="400" height="300" style="display:none;"></canvas>
        <img id="piimage" style="display:none;" />
    </div>
    <div>
        <button id="init_faceset" class="btn btn-warning" type="button">初始化faceset</button>
        <button id="cam" class="btn btn-warning" type="button">拍照</button>
        <input id="face_name" type="text" value="" />
        <button id="upload_face" class="btn btn-success" type="button">上传</button>
    </div>
    <script src="js/upload.js"></script>
</body>

</html>